package com.own.business.push.core.base;

import com.own.business.push.core.model.RegisterRegistrationIdModel;
import org.springframework.stereotype.Component;

/**
 * BaseSaveRegistrationIdMethod
 *
 * @author chenxueli
 * @date 2023-11-14 09:34:00
 */
@Component
public interface BaseRepeatRegistrationIdMethod {

    /**
     * 保存注册id
     *
     * @param model             注册id模型
     * @param oldRegistrationId 旧的注册id
     * @return 是否需要继续执行
     */
    boolean run(RegisterRegistrationIdModel model, String oldRegistrationId);

}
